#include <iostream>

#include "./source/Server.hpp"

int main()
{
    TcpSocket client;
    client.BulidClientSocket("127.0.0.1", 8888);
    int cnt = 5;
    while (cnt--)
    {
        std::string msg = "hello server!";
        ssize_t n = client.Send(msg);

        std::string buf;
        
        n = client.Recv(&buf);
        std::cout << buf << std::endl;
        sleep(1);
    }
    while (true)
    {
        sleep(1);
    }
    return 0;
}